// 菜单类型
export type MenuType = "C" | "F" | "M";
// 侧边菜单
export class MenuItem {
  children?: Array<MenuItem>;
  component: string;
  createTime?: string;
  icon?: string;
  id: string;
  isFrame?: number;
  menuName: string;
  menuType: MenuType;
  orderNum: number;
  parentId: string;
  path: string;
  status: string;
  visible: string;
  constructor(
    children: Array<MenuItem>,
    component: string,
    createTime: string,
    icon: string,
    id: string,
    isFrame: number,
    menuName: string,
    menuType: MenuType,
    orderNum: number,
    parentId: string,
    path: string,
    status: string,
    visible: string
  ) {
    this.children = children;
    this.component = component;
    this.createTime = createTime;
    this.icon = icon;
    this.id = id;
    this.isFrame = isFrame;
    this.menuName = menuName;
    this.menuType = menuType;
    this.orderNum = orderNum;
    this.parentId = parentId;
    this.path = path;
    this.status = status;
    this.visible = visible;
  }
}


export interface BreadcrumbItem{
    name:string,
    path:string
}
export interface AdminRoute {
  menus:Array<MenuItem>
}